package icu.funkye.confine.exception;

/**
 * @author jianbin.chen
 */
public class ConfineException extends RuntimeException {

    int code = ConfineExceptionCode.TPS;

    public ConfineException(String message) {
        super(message);
    }

    public ConfineException(String message, int code) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public interface ConfineExceptionCode {
        int RT = 800;
        int TPS = 801;
    }

}
